package com.yidu.t299.domain.twj;

/**
 * @author twj
 * @version 1.0.0
 */

import java.util.List;

/**
 * 加载树的实体类
 */
public class RoleTree {
    //定义一个树id
    private String  id;
    //定义一个树名称
    private String title;
    //定义一个保存子树集合
    private List<RoleTree> children;


    public RoleTree(){}

    public RoleTree(String id, String title, List<RoleTree> children) {
        this.id = id;
        this.title = title;
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<RoleTree> getChildren() {
        return children;
    }

    public void setChildren(List<RoleTree> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "RoleTree{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", children=" + children +
                '}';
    }
}
